<?php

namespace TableTennis\PartnerBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class DefaultController extends Controller
{

    public function indexAction()
    {
        $licensee_list = $this->getDoctrine()
                              ->getRepository('TableTennisPartnerBundle:Partner')
                              ->getLicensees()
                              ->getArrayResult();

        /* Breadcrumbs */
        $breadcrumbs = $this->get( 'white_october_breadcrumbs' );
        $breadcrumbs->addItem( 'Accueil', $this->get("router")->generate( '_homepage' ));
        $breadcrumbs->addItem( 'Partenaires du club' );
        
        return $this->render('TableTennisPartnerBundle:Default:index.html.twig', array());
    }

    public function homeAction()
    {

        
    }
}